package cn.com.springsource.ioc.autowire;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ContextApplication {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext context =
                new ClassPathXmlApplicationContext("spring-context-autowire.xml");

        IndexService indexService = (IndexService) context.getBean("indexService");

        indexService.serviceTest();
    }
}
